/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "商铺库存表",TableName = "goods_warehouse")]
[Table("goods_warehouse")]
    public partial class GoodsWarehouse:BaseEntity
    {
        /// <summary>
       ///商品库存ID
       /// </summary>
       [Key]
       [Display(Name ="商品库存ID")]
       [Column(TypeName="bigint")]
       [Required(AllowEmptyStrings=false)]
       public long gwid { get; set; }

       /// <summary>
       ///商品ID
       /// </summary>
       [Display(Name ="商品ID")]
       [Column(TypeName="bigint")]
       [Required(AllowEmptyStrings=false)]
       public long goods_id { get; set; }

       /// <summary>
       ///当前商品数量
       /// </summary>
       [Display(Name ="当前商品数量")]
       [Column(TypeName="int")]
       [Required(AllowEmptyStrings=false)]
       public int current_cnt { get; set; }

       /// <summary>
       ///当前占用数据
       /// </summary>
       [Display(Name ="当前占用数据")]
       [Column(TypeName="int")]
       [Required(AllowEmptyStrings=false)]
       public int lock_cnt { get; set; }

       /// <summary>
       ///在途数据
       /// </summary>
       [Display(Name ="在途数据")]
       [Column(TypeName="int")]
       [Required(AllowEmptyStrings=false)]
       public int in_transit_cnt { get; set; }

       /// <summary>
       ///商品成本
       /// </summary>
       [Display(Name ="商品成本")]
       [DisplayFormat(DataFormatString="8,2")]
       [Column(TypeName="decimal")]
       [Required(AllowEmptyStrings=false)]
       public decimal average_cost { get; set; }

       /// <summary>
       ///最后修改时间
       /// </summary>
       [Display(Name ="最后修改时间")]
       [Column(TypeName="datetime")]
       [Required(AllowEmptyStrings=false)]
       public DateTime modified_time { get; set; }

       /// <summary>
       ///商品总数
       /// </summary>
       [Display(Name ="商品总数")]
       [Column(TypeName="int")]
       [Required(AllowEmptyStrings=false)]
       public int in_cnt { get; set; }

       /// <summary>
       ///图集
       /// </summary>
       [Display(Name ="图集")]
       [Column(TypeName="nvarchar(max)")]
       public string images { get; set; }

       /// <summary>
       ///规格
       /// </summary>
       [Display(Name ="规格")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       public string model { get; set; }

       
    }
}